<!-- #header -->
<div id="header">
	<!-- #header-inside -->
    <div id="header-inside" class="clearfix">
    	<!-- #header-inside-left -->
        <div id="header-inside-left">

            <?php if ($logo): ?>
            <a href="<?php print check_url($front_page); ?>" title="<?php print t('Home'); ?>"><img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" /></a>
            <?php endif; ?>

            <?php if ($site_name || $site_slogan): ?>
            <div class="clearfix">
            <?php if ($site_name): ?>
            <span id="site-name"><a href="<?php print check_url($front_page); ?>" title="<?php print t('Home'); ?>"><?php print $site_name; ?></a></span>
            <?php endif; ?>
            <?php if ($site_slogan): ?>
            <span id="slogan"><?php print $site_slogan; ?></span>
            <?php endif; ?>
            </div>
            <?php endif; ?>

        </div><!-- EOF: #header-inside-left -->

        <!-- #header-inside-right -->
        <div id="header-inside-right">
			    <?php print render($page['search_area']); ?>
        </div><!-- EOF: #header-inside-right -->

    </div><!-- EOF: #header-inside -->

</div><!-- EOF: #header -->

<!-- #header-menu -->
<div id="header-menu">
	<!-- #header-menu-inside -->
    <div id="header-menu-inside" class="container_12 clearfix">
    	<div class="grid_12">
        <div id="navigation" class="clearfix">
          <?php if ($page['navigation']) :?>
            <?php print drupal_render($page['navigation']); ?>
          <?php endif; ?>
        </div>
      </div>

    </div><!-- EOF: #header-menu-inside -->

</div><!-- EOF: #header-menu -->


<div id="branding" class="clearfix">
  <?php print $breadcrumb; ?>
  <?php print render($title_prefix); ?>
  <?php if ($title): ?>
    <h1 class="page-title"><?php print $title; ?></h1>
  <?php endif; ?>
  <?php print render($title_suffix); ?>
  <?php print render($primary_local_tasks); ?>
</div>

<div id="page">
  <?php if ($secondary_local_tasks): ?>
    <div class="tabs-secondary clearfix"><?php print render($secondary_local_tasks); ?></div>
  <?php endif; ?>

  <div id="content" class="clearfix">
    <div class="element-invisible"><a id="main-content"></a></div>
    <?php if ($messages): ?>
      <div id="console" class="clearfix"><?php print $messages; ?></div>
    <?php endif; ?>
    <?php if ($page['help']): ?>
      <div id="help">
        <?php print render($page['help']); ?>
      </div>
    <?php endif; ?>
    <?php if ($action_links): ?><ul class="action-links"><?php print render($action_links); ?></ul><?php endif; ?>
    <?php print render($page['content']); ?>
  </div>

  <!-- #footer -->
  <div id="footer">
    <!-- #footer-inside -->
    <div id="footer-inside" class="clearfix">

      <div class="footer-area">
        <?php print render($page['footer']); ?>
      </div><!-- EOF: .footer-area -->

    </div><!-- EOF: #footer-inside -->

  </div><!-- EOF: #footer -->

</div>